<?php

namespace backend\models;

use Yii;
use yii\data\ActiveDataProvider;


/**
 * This is the model class for table "{{%message}}".
 *
 * @property integer $id
 * @property string  $image
 * @property integer $ctime
 */
class Message extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName ()
    {
        return '{{%message}}';
    }

    /**
     * @inheritdoc
     */
    public function rules ()
    {
        return [
            [ ['ctime'],['content'], "required"] ,
            [ ["is_pass"], "integer"] ,
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels ()
    {
        return [
            'id'           => 'Message ID' ,
            'ctime'        => '添加时间' ,
            'is_pass'      => '是否通过' ,
            'content'      => '消息内容' ,
        ];
    }
}
